package cn.ttxs.lib.wiget;

import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;

import androidx.viewpager.widget.ViewPager;

public class NoscrollViewPager extends ViewPager {

	public NoscrollViewPager(Context context, AttributeSet attrs) {
		super(context, attrs);
	}
	
	@Override
	public boolean onTouchEvent(MotionEvent ev) {
		return false;// 去掉ViewPager自带的滑动效果
	}
	
	@Override
	public boolean onInterceptTouchEvent(MotionEvent ev) {
		return false;// 不拦截事件
	}

}
